/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package projetlif13.tools;

/**
 *
 * @author theo
 */
public class Utility {

    public static int getRandomInt(int min, int max) {
        int random = (int) (Math.random() * (max - min)) + min;
        return random;
    }

    public static String getRandomName() {
        String name = "";
        int i = (int) (Math.random() * 30);
        switch (i) {
            case 1:
                return "Brondel";
            case 2:
                return "Martin";
            case 3:
                return "Alfred";
            case 4:
                return "Eric";
            case 5:
                return "Bouakaz";
            case 6:
                return "Bernard";
            case 7:
                return "Théo J.";
            case 8:
                return "Yohan B.";
            case 9:
                return "Merlaud Frit";
            case 10:
                return "Le Rigolo";
            case 11:
                return "Dark Vador";
            case 12:
                return "James Bond";
            case 13:
                return "François de Hollande";
            case 14:
                return "Henry le Roux";
            case 15:
                return "Thierry";
            case 16:
                return "Le Gaulois";
            case 17:
                return "Patie";
            case 18:
                return "Mikado";
            case 19:
                return "Alcane";
            case 20:
                return "Rolland";
            case 21:
                return "Arthur";
            case 22:
                return "Nancy";
            case 23:
                return "Augustin";
            case 24:
                return "Donatien";
            case 25:
                return "Fred I";
            case 26:
                return "Fred II";
            case 27:
                return "Jocelyn";
            case 28:
                return "Jacques Hadit";
            case 29:
                return "Harry Potter";
            default:
                return "Unknown";
        }
    }
}
